<?php
require_once("../config.php"); 
require_once("../model/DB.php");
require_once("../model/Class.php");
$classes = Classes::getClass($_POST['grade']);
$arr = array();
foreach ($classes as $class){
	$arr[]=$class;
}
print json_encode($arr);
?>